package cn.sciento.starter.social.core.common.connect;

import cn.sciento.starter.social.core.common.api.SocialApi;
import org.springframework.social.connect.ApiAdapter;
import org.springframework.social.connect.ConnectionValues;
import org.springframework.social.connect.UserProfile;

public abstract class SocialApiAdapter implements ApiAdapter<SocialApi> {
  private String providerUserId;
  
  public SocialApiAdapter() {}
  
  public SocialApiAdapter(String providerUserId) {
    this.providerUserId = providerUserId;
  }
  
  public boolean test(SocialApi api) {
    return true;
  }
  
  public UserProfile fetchUserProfile(SocialApi api) {
    return null;
  }
  
  public void updateStatus(SocialApi api, String message) {}
  
  public String getProviderUserId() {
    return this.providerUserId;
  }
  
  public abstract void setConnectionValues(SocialApi paramSocialApi, ConnectionValues paramConnectionValues);
}
